# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=garcon
pkgver=0.7.0
pkgrel=0
pkgdesc="a freedesktop.org compliant menu implementation based on GLib and GIO"
url="https://xfce.org/"
arch="all"
license="GPL-2.0-or-later"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
makedepends="glib-dev gtk+2.0-dev libxfce4ui-dev intltool libxfce4util-dev
	gtk-doc gobject-introspection-dev automake autoconf libtool
	xfce4-dev-tools"
source="$pkgname-$pkgver.tar.gz::https://github.com/xfce-mirror/garcon/archive/garcon-$pkgver.tar.gz"
replaces="xfdesktop"
builddir="$srcdir/garcon-garcon-$pkgver"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib \
		--localstatedir=/var \
		--disable-static \
		--enable-introspection \
		--enable-gtk-doc
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="08e073c7304279034858b1493ecc2a1cecbe3550b00b372238c90f6f6fbf6ef19c2e294b69ccb6143b19c74c885b6b2799d7672751543066d2b13d785d378ef1  garcon-0.7.0.tar.gz"
